package com.jielin.handling.entity.vo;

import com.alibaba.fastjson.JSONObject;
import com.jielin.handling.bean.base.BaseSearch;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by wangjienice on 2019-04-03.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CaseasSociationVo extends BaseSearch {
    private String id;
    private String unicode;//办案单位
    private String caseCode;//案件编号
    private String caseName;//案件名称
    private String policeId;
    private String state;
    private int relation;
    private int noRelation;
    private  String suspectnameAndDate;
    private String suspectId;


    @Override
    public void setQueryCondition(JSONObject queryCondition) {
        this.id=queryCondition.getString("id");
        this.state=queryCondition.getString("state")==null?"2":queryCondition.getString("state");
        this.unicode=queryCondition.getString("unicode");
        this.caseCode=queryCondition.getString("caseCode");
        this.caseName=queryCondition.getString("caseName");
        this.policeId=queryCondition.getString("policeId");
    }
}
